﻿package com.blueflamedev.util{	import flash.display.DisplayObject;		public class MediaRoot	{		private static var _dc:DisplayObject;				public static function set(dc:DisplayObject):void		{			_dc = dc;		}				public static function get path():String		{			if (_dc)			{				var p:String = String(_dc.loaderInfo.loaderURL.substring(0, (_dc.loaderInfo.loaderURL).lastIndexOf("swf")))				return p.substring(0, p.lastIndexOf("/") + 1);			}			else			{				return null;			}		}	}}